package jmu.edu.yjc.domain.vo.dept;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jmu.edu.yjc.config.GenderConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class DeptVo {
    //主键
    @ExcelProperty("序号")
    private Long id;
    //职工编号
    @ExcelProperty("职工编号")
    private String deptNo;
    //职工名字
    @ExcelProperty("职工名字")
    private String deptName;
    //职工身份证号
    @ExcelProperty("身份证号")
    private String deptIdentityid;
    //职工电话号码
    @ExcelProperty("手机号码")
    private String phonenumber;
    //职工性别
    @ExcelProperty(value = "性别",converter = GenderConverter.class)
    private String sex;
    //职工住址
    @ExcelProperty("地址")
    private String address;
    //职工生日
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty("职工生日")
    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;
    //岗位编号
    @ExcelIgnore
    private String postId;
    //岗位名字
    @ExcelProperty("岗位")
    private String postName;
    //入职时间
    @DateTimeFormat("yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @ExcelProperty(value = "入职时间")
    private Date entryTime;
    //月薪
    @ExcelProperty("薪水")
    private String salary;
}
